.torrent files sent to my deluge server with one click

What a great title!

I long ago stopped using a local torrent client in favour of an always-on solution (because seeding is best done 24/7) in the shape of yet another process on my awesome little "local server", which is a mini PC on our network, hosting media files and other services for the family.

I use deluge (deluged, that is; the "d" meaning daemon), and the deluge-web service for tinkering over the web. In fact, every member of the house has their own deluged/deluge-web service pair running, to avoid confusion and embarrassment; each on their own port.

The browser view works as well as any desktop client and it's irrelevant that the actual machine is a tiny box against the wall behind our movie screen. A folder on the desktop is a folder on the desktop, regardless of the actual location of the data (on a desktop, a directory is a "folder"). Anyways..

It's easy to have magnet links from your browser sent to the server (using the Magnet2Deluge Chrome extension which is better than the others). Click and done.

But what about actual .torrent files?

Step 1:

Configure deluge to watch a directory for torrents. Ours is /Q (it's a Linux box running Debian). You can drop .torrent files into it and they get automatically added to the Torrent queue. You will need access to this directory, of course. If you run Windows on your desktop and your server is Linux you will probably access the directory using SAMBA.

Let's say all this is true and you have the remote Linux volume mapped to a local drive "K:", so the watched directory path is "K:\Q".

Step 2:

Create two pieces of plain text:

1. A simple batch script which moves the file you click to your deluge watched directory, which I save as:

C:\Users\Dad\Documents\Scripts\Batch\MoveToTorrentQueue.bat

@echo off
setlocal ENABLEDELAYEDEXPANSION

set "torrentfile=%~1"
move "%torrentfile%" "K:\Q"



1. A registry entry to handle the click..

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.torrent]
@="TorrentFile"
"Content Type"="application/x-bittorrent"

[HKEY_CLASSES_ROOT\TorrentFile\shell\open\command]
@="\"C:\\Users\\Dad\\Documents\\Scripts\\Batch\\MoveToTorrentQueue.bat\" \"%1\""

Save that as "TorrentQ.reg" or whatever you like and merge the file into the registry.

Now, when you click on a torrent file it gets moved immediately to the Queue folder.

;o)

 ©  2026 « corz.org » 26.5.29  

Welcome to corz.org!

I'm always messing around with the back-end.. See a bug? Wait a minute and try again. Still see a bug? Mail Me!